package com.erb.service.wzq.impl;

import com.erb.entity.User;
import com.erb.mapper.UserMapper;
import com.erb.service.wzq.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by MoYao on 2020/6/9.
 */
@Service
public class UserServiceImpl implements IUserService {

	@Resource
	private UserMapper um;

	@Override
	public void userupd(String logindate, int id) {
		um.upduser(logindate, id);
	}

	@Override
	public User usersel(User user) {
		return um.seluser(user);
	}

	@Override
	public User emailuserphone(String phoneemail, String password) {
		return um.phoneuseremail(phoneemail, password);
	}

	@Override
	public void useradd(User user) {
		um.adduser(user);
	}

	@Override
	public void recommendadd(int id, int tid) {
		um.addrecommend(id, tid);
	}
}
